<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2018/4/24
 * Time: 18:34
 */

namespace app\index\controller;

use think\Controller;

class Common extends GetSlides
{
    public function page()
    {
        $this->get_slider();//返回banner
        $A = new Api();
        $data = $A->get_n_p_detail(input('get.id'));
        $GLOBALS['dar1'] = 'yygh';
        $this->assign("data", $data['data']);
        $this->assign("web_title", $data['data']['attributes']['title']);
        return view();
    }
}
